﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="0f3fe60c-6184-446b-8e97-1d040bb00faf.RibbonExtensions"
                RegistrationType="List"
                RegistrationId="101"
                Location="CommandUI.Ribbon"
                Sequence="10"
                Title="Download 2 Zip"
                HostWebDialog="TRUE" 
                HostWebDialogHeight="300" HostWebDialogWidth="400"
                >
    <CommandUIExtension>

      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.Manage.Controls._children">
          <Button Id="AG.Download2Zip"
                  Alt="Download 2 Zip"
                  Sequence="100"
                  Command="AGDownload2Zip"
                  LabelText="Download 2 Zip"
                  TemplateAlias="o1"
                  Image32by32=""
                  Image16by16="" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="AGDownload2Zip"
                          CommandAction="~remoteAppUrl/Download?{StandardTokens}&amp;SelectedItems={SelectedItemId}&amp;ListId={SelectedListId}"/>
      </CommandUIHandlers>
    </CommandUIExtension >
  </CustomAction>
</Elements>
